//
//  BaseTableViewController.swift
//  Onexinlang
//
//  Created by Mac on 15/9/1.
//  Copyright © 2015年 HM. All rights reserved.
//

import UIKit

class BaseTableViewController: UITableViewController {

    var userLogon = false
    
    override func loadView() {
        userLogon ? super.loadView() :setupVistorView()
        
    }
    
    private func setupVistorView() {
        
        view = UIView()
        
        view.backgroundColor = UIColor.orangeColor()
        
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: "注册", style: UIBarButtonItemStyle.Plain, target: nil, action: nil)
        
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "登录", style: UIBarButtonItemStyle.Plain, target: nil, action: nil)
    }
    
  
}
